package com.ruoyi.column.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 子账号管理对象 e_sub
 *
 * @author ruoyi
 * @date 2024-11-24
 */
public class ESub extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String name;

    /** 密码 */
    @Excel(name = "密码")
    private Long password;

    /** 角色 */
    @Excel(name = "角色")
    private String roles;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 最近登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPassword(Long password)
    {
        this.password = password;
    }

    public Long getPassword()
    {
        return password;
    }
    public void setRoles(String roles)
    {
        this.roles = roles;
    }

    public String getRoles()
    {
        return roles;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setLoginTime(Date loginTime)
    {
        this.loginTime = loginTime;
    }

    public Date getLoginTime()
    {
        return loginTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("username", getUsername())
                .append("name", getName())
                .append("password", getPassword())
                .append("roles", getRoles())
                .append("status", getStatus())
                .append("loginTime", getLoginTime())
                .append("createTime", getCreateTime())
                .toString();
    }
}
